import { configureStore } from "@reduxjs/toolkit";
import loginStateReducer from "../redux/reducer/loginState";
import cache2Reducer from "../redux/reducer/cache2";
import routerRedcer from '../redux/reducer/router'
import thunk from "redux-thunk";
import logger from "./logger";

const store = configureStore({
    reducer: {
        loginState: loginStateReducer,
        cache2: cache2Reducer,
        router: routerRedcer
    },
    middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat(thunk).concat(logger)
})

export default store